package com.intel.factorytest;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

public class FactoryTestReceiver extends BroadcastReceiver{

    @Override
    public void onReceive(Context context, Intent intent) {
        System.out.println("tangjun receiver : action=" + intent.getAction());
        if (intent.getAction().equals("intel.provider.calculator.SECRET_CODE")){
            Intent i = new Intent(Intent.ACTION_MAIN);
            i.setClass(context, FactoryTest.class);
            i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
            context.startActivity(i);
        }
        
    }
}
